package zhh.tangbao.syslog.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import zhh.tangbao.syslog.dto.WorkRecordQueryDto;
import zhh.tangbao.syslog.entity.WorkRecord;
import zhh.tangbao.syslog.service.WorkRecordService;
import zhh.tangbao.system.result.Result;

/**
 * <p>
 * 描述
 * </p>
 *
 * @author 粥灰灰
 * <p>2023/4/25</p>
 */

@RestController
@RequestMapping("/api/workRecord")
public class WorkRecordController {

    @Autowired
    private WorkRecordService service;


    @GetMapping("/page")
    public Result page(WorkRecordQueryDto dto) {
        Page<WorkRecord> page = service.page(dto);
        return Result.success().put(page);
    }
}
